<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
 <meta name="renderer" content="webkit">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>法人担保人信息</title>
<jsp:include page="../../import.jsp" flush="true" />
</head>
<body>
		<form id="prj_cst_form">
             <div class="fieldset1 tabel_col tabel_col_s clearFix noBorder">
               <div class="fieldBox col_50" >
                    <div class="label">公司名称</div>
                    <div class="field">
                 <input name="prjCstId" id="prjCstId" type="hidden" class="ui-textbox" value="${cst.id}" >
                          <span>${cst.cstNm}</span>
                    </div>
                </div>
                
                     <div class="fieldBox col_50" >
                    <div class="label">法人名称</div>
                    <div class="field">
                          <span>${mnm}</span>
                    </div>
                </div>
                <div class="fieldBox col_50" >
                    <div class="label">联系电话</div>
                    <div class="field">
                          <span>${mp1}</span>
                    </div>
                </div>
                <div class="fieldBox col_100">
                    <div class="label">访谈记录</div>
                    <div class="field" style="width: 100%;">
                        <textarea name="visRec" id="visRec" rows="4" class="l-textarea" style="width:99%">${cst.visRec}</textarea>
                    </div>
                </div>
            </div>
            <div class="btnsBox">
               <span id="prj_cst_add_btn"  onclick="modifyPrjCst()" class="sq-button sq-button-round">保存</span>
                <span id="prj_cst_cancel_btn"  onclick="cancel()" class="sq-button sq-button-round">取消</span>
            </div>
        </form>
	<script>
		$(function() {
		   $("#prj_cst_form").ligerForm({
                validate: true
           });
			
	        
		});
		function cancel(){
			frameElement.dialog.close();
		}
			   function modifyPrjCst(){
				   var ligerForm = liger.get("prj_cst_form");
		            if (!ligerForm.valid()) {
		                top.$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_MUST_FIX_ITEM_INFO,SQ_type: "warning"});
		                return false; //验证不通过，不执行以下代码
		            }
		            var url = '<%=path%>/project/prjcstbscInfo/modify.do';
		            var data={};
		            data["id"]= $("#prjCstId").val();
		            data["rlCd"] =$("#rlCd").val();
		            data["visRec"] =$("#visRec").val();
		            var wait_dialog;
		            $.ajax({
		        		type: 'post',
		        		dataType:'json',
		        		data:data,
		        		url: url,
		        		beforeSend: function(){
			  		          wait_dialog=$.ligerDialog.SQalert({content: LogUtils.LOG_CMM_DATA_LOADING ,SQ_type: "waitting" });
			  		     },
		        		success:function(msg){
		        			 wait_dialog.close();
		        			 if(msg.success == 1){
		        				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "success"});
		        				 parent.npgrid.reload();
		        				 frameElement.dialog.close();
		        			 }else{
		        				 top.$.ligerDialog.SQalert({content: msg.info,SQ_type: "error"});
		        			 }
		        		}
		        	});
		        }
	           
	</script>

</body>
</html>